package com.atguigu.gmall.common.config;

import com.atguigu.gmall.common.config.exception.GlobalExceptionHandle;
import com.atguigu.gmall.common.config.executor.ThreadPoolProperties;
import com.atguigu.gmall.common.config.minio.MinioProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ServiceAutoConfiguration {

    @Bean
    public MinioProperties minioProperties() {
        return new MinioProperties();
    }

    @Bean
    public GlobalExceptionHandle globalExceptionHandle() {
        return new GlobalExceptionHandle();
    }

    @Bean
    public ThreadPoolProperties threadPoolProperties() {
        return new ThreadPoolProperties();
    }
}
